import { toUeMsg } from "@/utils/onClientNotify";
const currentFloorState = ref(false); // 切换展示楼层 打开状态  0 关闭 1 打开
const currentFloor = ref(1); //当前楼层号
const HumenHotMap = ref(false); //

// 修改当前楼层
const handleChangeFloor = (i) => {
    currentFloor.value = i;
    toUeMsg('changeCurrentFloor', i)
}

// 修改当前楼层展开状态
const handleChangeFloorState = (bool) => {
    currentFloorState.value = bool;
    toUeMsg('changeFloorState', ~~bool);
}

const handleChangeHomenHotMap = (bool) => {
    HumenHotMap.value = bool;
    toUeMsg('HumenHotMap', ~~bool);
}
export const useState = () => {
    return {
        currentFloorState,
        currentFloor,
        HumenHotMap,
        handleChangeFloor,
        handleChangeFloorState,
        handleChangeHomenHotMap
    }
}